<script>
var i=1;
while(i<=10){
  document.write("<input type='button' value="+i+">");
  i++;


}


</script>